<?php
  define('IN_ECS', true);
  
  define('ROOT_PATH', str_replace('stock_rate.php', '', str_replace('\\', '/', __FILE__)));
  require_once('plugins/simple_html_dom.php');
  require_once(ROOT_PATH.'ty/collect_info/ExchangeRateService.php');
  
  $exchangeRateService = new ExchangeRateService();
  
  $action  = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : 'stock_rate';
  
  if($action == 'stock_rate'){
      $stockTable = $exchangeRateService->getStockRateListHtml();
      exit($stockTable);
  }
  
?>
